<?php
namespace Opportunity\Form;
 
use Zend\Captcha; 
use Zend\Form\Element; 
use Zend\Form\Form; 
use Zend\InputFilter\Factory as InputFactory; 
use Zend\InputFilter\InputFilter; 
use Zend\InputFilter\InputFilterAwareInterface; 
use Zend\InputFilter\InputFilterInterface;

class OpportunityForm extends Form //implements InputFilterAwareInterface 

{ 
    public function __construct($name = null) 
    { 
        parent::__construct('opportunity'); 
        
        $this->setAttribute('method', 'post'); 
        
        $this->add(array(
             'name' => 'id',
             'type' => 'Hidden',
         ));
		
		$this->add(array( 
            'name' => 'name', 
            //'type' => 'Zend\Form\Element\Text', 
            'attributes' => array( 
				'type'  => 'text',
                'placeholder' => 'Type opportunity name...', 
                'required' => 'required', 
            ),
        )); 
 
        $this->add(array( 
            'name' => 'amount_currency_id', 
            //'type' => 'Zend\Form\Element\Text', 
            'attributes' => array( 
				'type'  => 'text',
                'placeholder' => 'Type amount currency...', 
                'required' => 'required', 
            ), 
        )); 
		
		$this->add(array( 
            'name' => 'amount_value', 
            //'type' => 'Zend\Form\Element\Text', 
            'attributes' => array( 
				'type'  => 'text',
                'placeholder' => 'Type amount value...', 
            		'required' => 'required',
            ), 
        ));
		
		$this->add(array( 
            'name' => 'account_id', 
            //'type' => 'Zend\Form\Element\Text', 
            'attributes' => array( 
				'type'  => 'text',
                'placeholder' => 'Type account...', 
            		'required' => 'required',
            ), 
        ));
 
		$this->add(array( 
            'name' => 'closedate', 
            //'type' => 'Zend\Form\Element\Text', 
            'attributes' => array( 
				'type'  => 'text',
                'placeholder' => 'Type close date...',
            		'required' => 'required',
            ), 
        ));
		
		
		$this->add(array( 
            'name' => 'stage_id', 
            //'type' => 'Zend\Form\Element\Text', 
            'attributes' => array( 
				'type'  => 'text',
                'placeholder' => 'Type stage...',
            		'required' => 'required',
            ), 
        ));
		
		$this->add(array( 
            'name' => 'probability', 
            //'type' => 'Zend\Form\Element\Text', 
            'attributes' => array( 
				'type'  => 'text',
                'placeholder' => 'Type probability...', 
            		'required' => 'required',
            ), 
        ));
		
		$this->add(array( 
            'name' => 'source_id', 
            //'type' => 'Zend\Form\Element\Text', 
            'attributes' => array( 
				'type'  => 'text',
                'placeholder' => 'Type source...',
            		'required' => 'required',
            ), 
        ));
		
		$this->add(array( 
            'name' => 'description', 
            //'type' => 'Zend\Form\Element\Text', 
            'attributes' => array( 
				'type'  => 'text',
                'placeholder' => 'Type description...',
            		'required' => 'required',
            ), 
        ));
		
		$this->add(array(
            'name' => 'submit',
            'attributes' => array(
                'type'  => 'submit',
                'value' => 'Go',
                'id' => 'submitbutton',
            ),
        ));
		
        
    }
	
	
     
} 
?>